home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / What's New? / Tool Chest / ATA Demo 1.3 / ATADemo 1.2 ReadMe < prev   
Encoding:
Text File  |  1999-03-15  |  3.6 KB  |  100 lines  |  [TEXT/R*ch]

  1.      ATADemo - Macintosh ATA Manager Sample
  2.  
  3.      Version: 1.3
  4.  
  5.      Apple Macintosh Developer Technical Support
  6.      Written by: Vinne Moscaritolo
  7.  
  8.      Copyright Apple Computer, Inc
  9.  
  10.      You may incorporate this sample code into your applications
  11.      without restriction, though the sample code has been provided "AS
  12.      IS" and the responsibility for its operation is 100% yours.
  13.      However, what you are not permitted to do is to redistribute the
  14.      source as "DTS Sample Code" after having made changes. If you're
  15.      going to re-distribute the source, we require that you make it
  16.      clear in the source that the code was descended from Apple Sample
  17.      Code, but that you've made changes.
  18.  
  19.      ATADemo is a CodeWarrior C sample that will call the ATA
  20.      Manager and scan the ATA bus and list the various device
  21.      configuration data.  
  22.      
  23.      This sample has been updated to properly work with the .AppleCD
  24.      driver installed.  On my Poorbook G3 this sample produced the following
  25.      results:
  26.  
  27.      ------------------------------------------------------------------
  28.  
  29. Macintosh ATA Manager Sample
  30.  
  31. ATA Manager inquiry:
  32.     ATA Manager Version: 4.3.1 (hex 04318000)
  33.     Busses:     2
  34.     Devices:    2
  35.     PIO Modes:  0
  36.     DMA Modes:  0
  37.     Multi DMA Modes:0
  38. -----------------------------------------
  39.  
  40. Found .AppleCD driver, preparing to disable it
  41. - Disable the CD Driver 
  42. -- Wake up the CD Driver 
  43. -- Set the CD Driver Quiescence mode to On
  44.  
  45. Device 1 .AppleCD
  46. Configuration: (ATAPI, Media Bay)
  47.                  Configuration word 34176
  48.                           Cylinders 0
  49.                               Heads 0
  50.                         Bytes/Track 0
  51.        Bytes/Sector (0 = 512 bytes) 0
  52.                       Sectors/Track 0
  53.           Vendor Unique (word 7..9) 0000 0000 0000
  54.                       Serial Number ""
  55.                         Buffer Type 0000
  56.  Buffer size in 512 byte increments 0
  57.       Number of ECC bytes available 0
  58.                   Firmware Revision "A011"
  59.                        Model Number "MATSHITA CR-174"
  60.      Capability Flags (word 47..53) 0002 0512 0512 0000 3840 0000 0000
  61.            Cylinders (current mode) 0
  62.                Heads (current mode) 0
  63.        Sectors/Track (current mode) 0
  64.         Current Capacity in Sectors 0
  65.     Multiple Sector Capability Flag 0000
  66.    Current User-addressable Sectors 0
  67. Single Word DMA Transfer Mode Flags 0007
  68.   Multiword DMT Transfer Mode Flags 1031
  69. -----------------------------------------
  70.  
  71. Device 0 .ATADisk
  72. Configuration: (ATA, Internal)
  73.                  Configuration word 1114
  74.                           Cylinders 10592
  75.                               Heads 15
  76.                         Bytes/Track 0
  77.        Bytes/Sector (0 = 512 bytes) 0
  78.                       Sectors/Track 0
  79.           Vendor Unique (word 7..9) 0000 0000 0000
  80.                       Serial Number "D34D3163589"
  81.                         Buffer Type 0003
  82.  Buffer size in 512 byte increments 936
  83.       Number of ECC bytes available 4
  84.                   Firmware Revision "PL8AAA3A"
  85.                        Model Number "IBM-DPLA-25120"
  86.      Capability Flags (word 47..53) 0007 0512 0512 0000 3840 0000 0016
  87.            Cylinders (current mode) 10592
  88.                Heads (current mode) 15
  89.        Sectors/Track (current mode) 63
  90.         Current Capacity in Sectors 10009440
  91.     Multiple Sector Capability Flag 0264
  92.    Current User-addressable Sectors 10009440
  93. Single Word DMA Transfer Mode Flags 0007
  94.   Multiword DMT Transfer Mode Flags 1031
  95. -----------------------------------------
  96.  
  97. Re-enabling the .AppleCD driver 
  98. - Enable the CD Driver 
  99. -- Set the CD Driver Quiescence mode to Off
  100.